<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColumnBookWords250903 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('book_word', function (Blueprint $table){
            $table->string('word_class')->default('')->comment('词性');
            $table->string('read_mark')->default('')->comment('重读标记');
            $table->string('symbol')->default('')->comment('音标');
            $table->string('paragraph')->default('')->comment('段落');
        });

        //书本张捷
        Schema::table('book_chapter', function (Blueprint $table) {
            $table->text('paragraphs')->comment('段落列表');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
